#!/usr/bin/env python
# encoding: utf-8
"""
@author: youfeng
@email: youfeng243@163.com
@license: Apache Licence
@file: annual_report_process.py
@time: 2018/1/24 20:01
"""


# 年报处理对象
class AnnualReportProcess(object):
    def __init__(self, company, province, year, host, ent_type, annual_type, anChe_id, base_href, index_href):
        self.company = company
        self.province = province
        self.year = year
        self.host = host
        self.ent_type = ent_type
        self.annual_type = annual_type
        self.anChe_id = anChe_id
        self.base_href = base_href
        self.index_href = index_href

        # 获取基本页面属性
        self.base_url = 'http://{}{}{}.html'.format(self.host, self.base_href, self.anChe_id)

        # 获取所有链接信息
        self.index_url = 'http://{}{}{}.html'.format(self.host, self.index_href, self.anChe_id)

        #     self.all_annual_url_dict = self.get_all_report_list()
        #
        # # 获得所有的年报信息链接
        # def get_all_report_list(self):
        #     self.session
